home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Graphics / SoftCinema / Install_SoftCinema < prev    next >
Text File  |  2000-05-14  |  12KB  |  344 lines

  1. ;$VER: Install_SoftCinema (2000-04-08)
  2. ;by Sebastian Huebner <cyco@baud.de>
  3. ;this is a part of the SoftCinema Distribution: SHAREWARE!
  4.  
  5.  
  6. (set #scversion   "0.10 (05/2000)")
  7.  
  8. (set #keyfilename "S:SoftCinema.key")
  9. (set #mainprogdir "SYS:Utilities")
  10. (set #docudir     "HELP:")
  11.  
  12. (set #mainprogfile "SoftCinema")
  13. (set #docuenglish  "SoftCinema_English.guide") 
  14. (set #docupolski   "SoftCinema_Polski.guide") 
  15. (set #regienglish  "Register_form.eng") 
  16. (set #regipolski   "Register_form.pl")
  17. (set #datadir      "codecs") 
  18.  
  19. ;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  20. ;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  21. ;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  22.  
  23. (complete 0)
  24.  
  25. ;~~~~~~~~~~~~~~~~~~english texts~~~~~~~~~~~~~~~~~~
  26.  
  27.     (set #introduction
  28.       (cat  "\n"
  29.             "Wellcome to\n"
  30.             "\n"
  31.             "\n"
  32.             "»»» " @app-name " «««\n"
  33.             "\n"
  34.             "\The Ultimate Movie Player for PPC Amigas\n"
  35.             "\n"
  36.             "by Jacek Cybularczyk <noe@webnet.pl>\n"
  37.             "\n"
  38.             "\n"
  39.             "\n"
  40.             "\nVersion to Install: " #scversion )
  41.     )
  42.  
  43.     (set #what-to-install (cat "Which parts of the " @app-name " distribution do "
  44.                                "want to install?"
  45.                           )
  46.     )
  47.  
  48.     (set #ask-mainpath (cat "Where should the main program be placed? "
  49.                             "(An additional drawer for the codecs will be created if it doesn't "
  50.                             "exist right now.)"
  51.                        )
  52.     )
  53.     (set #ask-mainpath-help (cat "Please specify a place for the main program "
  54.                                  "\"" @app-name "\". Usually this kind of program "
  55.                                  "lives in \"" #mainprogdir "\". Please notice that "
  56.                                  "an additional drawer for the codecs will be "
  57.                                  "created at that place."
  58.                             )
  59.     )
  60.     (set #ask-docspath (cat "Where should the documentation be placed?\n"
  61.                        )
  62.     )
  63.     (set #ask-docspath-help (cat "Please specify a place for the documentation. "
  64.                                  "Usually AmigaGuides live in \"" #docudir "\"."
  65.                             )
  66.     )
  67.     (set #ask-regfpath (cat "Where should the registration form be placed?\n"
  68.                        )
  69.     )
  70.     (set #ask-regfpath-help (cat "Please specify a place for the registration form. "
  71.                                  "Notice that " @app-name " is Shareware and "
  72.                                  "the unregistered version has many limitations. "
  73.                                  "If you like it, register!"
  74.                             )
  75.     )
  76.     (set #ask-readdocs "\n\n\nDo you want to read the Documentation right now?")
  77.     (set #goodbye (cat "\n\n\n\nGoodbye and have fun with " @app-name "!"))
  78.     (set #goodbye-novice (cat "\n\n\n\nGoodbye and have fun with " @app-name "!\n"
  79.                               "\n\n"
  80.                               "Main Program:  \"" #mainprogdir "\"\n"
  81.                               "Documentation: \"" #docudir "\""
  82.                          )
  83.     )
  84.  
  85.     ;main program, english guide, english registration form
  86.     (set #choices-default %01011)
  87.  
  88. ;~~~~~~~~~~~~~~~~~~polish texts~~~~~~~~~~~~~~~~~~
  89.  
  90. (if (= @language "polski")
  91.   (
  92.     (set #introduction
  93.       (cat  "\n"
  94.             "Witaj\n"
  95.             "\n"
  96.             "\n"
  97.             "»»» " @app-name " «««\n"
  98.             "\n"
  99.             "\The Ultimate Movie Player for PPC Amigas\n"
  100.             "\n"
  101.             "by Jacek Cybularczyk <noe@webnet.pl>\n"
  102.             "\n"
  103.             "\n"
  104.             "\n"
  105.             "\nWersja do instalacji: " #scversion )
  106.     )
  107.  
  108.     (set #what-to-install (cat "Które pliki z dystrybucji " @app-name " chciaîbyô zainstalowaê?"
  109.                           )
  110.     )
  111.  
  112.     (set #ask-mainpath (cat "Gdzie umieôciê gîówny plik? "
  113.                             "(Bëdzie utworzony dodatkowy katalog dla kodeków.)"
  114.                        )
  115.     )
  116.     (set #ask-mainpath-help (cat "Prosze wskazaê miejsce, gdzie ma byê skopiowany gîówny plik "
  117.                                  "\"" @app-name "\". Proponuje umieôciê go w katalogu "
  118.                                  "\"" #mainprogdir "\". Dodatkowo bëdzie tam utworzony katalog dla "
  119.                                  "kodeków."
  120.                             )
  121.     )
  122.     (set #ask-docspath (cat "Gdzie skopiowaê dokumentacje?\n"
  123.                        )
  124.     )
  125.     (set #ask-docspath-help (cat "Prosze wskazaê miejsce, gdzie ma byê skopiowana dokumentacja. "
  126.                                  "Proponuje umieôciê jâ w katalogu \"" #docudir "\"."
  127.                             )
  128.     )
  129.     (set #ask-regfpath (cat "Gdzie skopiowaê formularz rejestracji?\n"
  130.                        )
  131.     )
  132.     (set #ask-regfpath-help (cat "Prosze wskazaê miejsce, gdzie ma byê skopiowany formularz rejestracji. "
  133.                                  @app-name " jest programem typu Shareware i wersja "
  134.                                  "nie zarejestrowana posiada pewne ograniczenia. "
  135.                                  "Jeûeli masz ochotë, zarejestruj jâ!"
  136.                             )
  137.     )
  138.     (set #ask-readdocs "\n\n\nChciaîbyô przeczytaê teraz dokumentacjë?")
  139.     (set #goodbye (cat "\n\n\n\nÛegnam i ûyczë miîej zabawy z programem " @app-name "!"))
  140.     (set #goodbye-novice (cat "\n\n\n\nÛegnam i ûyczë miîej zabawy z programem " @app-name "!\n"
  141.                               "\n\n"
  142.                               "Program:  \"" #mainprogdir "\"\n"
  143.                               "Dokumentacja: \"" #docudir "\""
  144.                          )
  145.     )
  146.  
  147.     ;main program, polish guide, polish registration form
  148.     (set #choices-default %10101)
  149.   )
  150. )
  151.  
  152. ;~~~~~~~~~~~~~~~~~~french texts~~~~~~~~~~~~~~~~~~
  153.  
  154. (if (= @language "français")
  155.   (
  156.     (set #introduction
  157.       (cat  "\n"
  158.             "Bienvenue to\n"
  159.             "\n"
  160.             "\n"
  161.             "»»» " @app-name " «««\n"
  162.             "\n"
  163.             "\Le visualisateur ultime de vidéos pour Amigas PPC\n"
  164.             "\n"
  165.             "par Jacek Cybularczyk <noe@webnet.pl>\n"
  166.             "\n"
  167.             "\n"
  168.             "\n"
  169.             "\nVersion à installer: " #scversion )
  170.     )
  171.  
  172.     (set #what-to-install (cat "Quelle parties de " @app-name " la distribution "
  173.                                "désirez-vous installer?"
  174.                           )
  175.     )
  176.  
  177.     (set #ask-mainpath (cat "Où le programme principal devra-t'il être placé? "
  178.                             "(Un répertoire sera créé pour les codecs si il "
  179.                             "n'existe pas déjà.)"
  180.                        )
  181.     )
  182.     (set #ask-mainpath-help (cat "Spécifiez un emplacement pour le programme principal "
  183.                                  "\"" @app-name "\". Normallement ce genre de programme "
  184.                                  "réside dans \"" #mainprogdir "\". Notez qu'un répertoire "
  185.                                  "sera créé à cet endroit pour le stockage des codecs."
  186.                             )
  187.     )
  188.     (set #ask-docspath (cat "Où la documentation devra-t'elle être placée?\n"
  189.                        )
  190.     )
  191.     (set #ask-docspath-help (cat "Spécifiez un emplacement pour la documentation. "
  192.                                  "Normallement les docs AmigaGuides résident "
  193.                                  "dans \"" #docudir "\"."
  194.                             )
  195.     )
  196.     (set #ask-regfpath (cat "Où le formulaire d'enregistrement devra-t'il être placé?\n"
  197.                        )
  198.     )
  199.     (set #ask-regfpath-help (cat "Spécifiez un emplacement pour le formulaire d'enregistrement. "
  200.                                  "Notez que " @app-name " est Shareware et que "
  201.                                  "la version de démonstration a certaines limitations. "
  202.                                  "Si vous l'appréciez, enregistrez-vous!"
  203.                             )
  204.     )
  205.     (set #ask-readdocs "\n\n\nDésirez-vous lire la documentation maintenant?")
  206.     (set #goodbye (cat "\n\n\n\nAu revoir et amusez-vous avec " @app-name "!"))
  207.     (set #goodbye-novice (cat "\n\n\n\nAu revoir etamusez-vous avec " @app-name "!\n"
  208.                               "\n\n"
  209.                               "Programme principal:  \"" #mainprogdir "\"\n"
  210.                               "Documentation: \"" #docudir "\""
  211.                          )
  212.     )
  213.  
  214.     ;programme principal, guide polonais, formulaire d'enregistrement polonais
  215.     (set #choices-default %10101)
  216.   )
  217. )
  218.  
  219. ;~~~~~~~~~~~~~~~~~~Installation~~~~~~~~~~~~~~~~~~
  220.  
  221.  
  222. ;check for keyfile ==> perhaps skip registration form
  223. (if (exists #keyfilename (noreq))
  224.     (set #choices-default (BITAND #choices-default %00111))
  225. )
  226. (complete 1)
  227.  
  228.  
  229. ; introduction
  230. (message #introduction (all))
  231. (complete 10)
  232.  
  233.  
  234. ;choose user level
  235. (welcome " ")
  236. ;test for user level
  237. (set #novice  (= @user-level 0))
  238. (set #average (= @user-level 1))
  239. (set #expert  (= @user-level 2))
  240. (complete 20)
  241.  
  242.  
  243. (if #expert
  244.     (set #choices (askoptions (prompt #what-to-install) (help #what-to-install-help)
  245.                               (choices (cat @app-name " (Main Program)") "English Guide" "Polski Guide"
  246.                                        "English Registration Form" "Polski Registration Form")
  247.                               (default #choices-default)
  248.                   )
  249.     )
  250.     (set #choices #choices-default)
  251. )       
  252. (complete 30)
  253.  
  254.  
  255. ;where to install the main program?
  256. (set #mainpath "")
  257. (if (IN #choices 0)
  258.     (set #mainpath (askdir (prompt #ask-mainpath) (help #ask-mainpath-help)
  259.                            (default #mainprogdir))
  260.     )
  261. )
  262. (complete 50)
  263.  
  264.  
  265. ;where to install the documentation?
  266. (set #docspath "")
  267. (if (OR (IN #choices 1) (IN #choices 2))
  268.     (set #docspath (askdir (prompt #ask-docspath) (help #ask-docspath-help)
  269.                            (default #docudir))
  270.     )
  271. )
  272. (complete 60)
  273.  
  274. ;where to install the registration form (if needed)?
  275. (if (AND (OR #novice #average)
  276.          ;keyfile can be placed at S: or PROGDIR: !
  277.          (exists (tackon #mainpath (fileonly #keyfilename)) (noreq)))
  278.     (set #choices (BITAND #choices %00111))
  279. )
  280. (set #regfpath "")
  281. (if (OR (IN #choices 3)
  282.         (IN #choices 4)
  283.     ) 
  284.     (set #regfpath (askdir (prompt #ask-regfpath) (help #ask-regfpath-help)
  285.                            (default (if (<> "" #mainpath)
  286.                                         #mainpath
  287.                                         #mainprogdir
  288.                                     )
  289.                            )
  290.                    )
  291.     )
  292. )
  293. (complete 70)
  294.  
  295.  
  296. (if (IN #choices 0)
  297.   (copyfiles (prompt "") (help "") (source "") (dest #mainpath)
  298.              (pattern (cat "(" #mainprogfile "|" #datadir ")")) (infos) (noposition) (confirm)
  299.   )
  300. )
  301. (complete 80)
  302.  
  303. (if (IN #choices 1)
  304.   (copyfiles (prompt "") (help "") (source #docuenglish) (dest #docspath)
  305.              (infos) (noposition) (confirm)
  306.   )
  307. )
  308. (complete 85)
  309.  
  310. (if (IN #choices 2)
  311.   (copyfiles (prompt "") (help "") (source #docupolski) (dest #docspath)
  312.              (infos) (noposition) (confirm)
  313.   )
  314. )
  315. (complete 90)
  316.  
  317. (if (IN #choices 3)
  318.   (copyfiles (prompt "") (help "") (source #regienglish) (dest #regfpath)
  319.              (infos) (noposition) (confirm)
  320.   )
  321. )
  322. (complete 95)
  323.  
  324. (if (IN #choices 4)
  325.   (copyfiles (prompt "") (help "") (source #regipolski) (dest #regfpath)
  326.              (infos) (noposition) (confirm)
  327.   )
  328. )
  329. (complete 100)
  330.  
  331. (if (askbool (prompt #ask-readdocs) (help "") (default 1))
  332.     (if (= @language "polski")
  333.         (run (prompt "") (help "") (safe) (cat "MultiView " #docupolski ))
  334.         (run (prompt "") (help "") (safe) (cat "MultiView " #docuenglish))
  335.     )
  336. )
  337.  
  338. ; the end
  339. (set @default-dest #mainpath)
  340. (if #novice
  341.     (exit #goodbye-novice)
  342.     (exit #goodbye)
  343. )
  344.